package com.test.activity;

import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.PopupWindow;
import android.widget.Toast;

public class MyPopUpWindow extends PopupWindow implements OnTouchListener {

	private Context mContext;

	interface onTouchPopWindow {
		public void touchPopWindow();
	}

	public MyPopUpWindow(Context context, View contentView, int width,
			int height) {
		super(contentView, width, height);
		mContext = context;
	}

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		Toast.makeText(mContext, "1111", Toast.LENGTH_SHORT).show();
		return false;
	};

}
